<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href='<?php echo base_url()?>'>
<link rel="stylesheet" type="text/css" href="public/common/css/common.css"/>
<link rel="stylesheet" type="text/css" href="public/admin/css/admin.css"/>
</head>
<body>
<div class="body">
	<div class="main_top"><div class="position left">当前位置 <span>&gt;</span> 用户 <span>&gt;</span> 管理员 <span>&gt;</span> 管理员管理 <span>&gt;</span> 管理员修改 </div></div>
    <div class="go_back"><a href="javascript:history.back()">返回</a></div>
    <div class="body_center">
    	<form action="<?php echo site_url('admin/user_admin/edit_content/'.$user_admin->admin_id)?>" method="post">
            <table class="table">
                <tr><th width='20%'>参数名</th><th width='55%'>参数值</th><th width='25%'>参数说明</th></tr>
                <tr>
                    <td align="center">管理员帐号：</td>
                    <td><input class="input_txt" type="text" name="admin_name" value="<?php echo $user_admin->admin_name?>" /></td>
                    <td><span class="red">*</span> 帐号不能重复</td>
                </tr>
                <tr>
                    <td align="center">管理员新密码：</td>
                    <td><input class="input_txt" type="text" name="admin_password" /></td>
                    <td><span class="red">*</span> 默认为空，则不修改密码！</td>
                </tr>
				<tr>
                    <td align="center">所属管理组：</td>
                    <td>
						<select name="group_id">
							<?php foreach($admin_group->result() as $value):?>
							<option value='<?php echo $value->group_id?>'><?php echo $value->group_name?></option>
							<?php endforeach;?>
						</select>
						<a href='<?php echo site_url("admin/user_admin/group_add")?>'>新增用户组</a>
					</td>
                    <td><span class="red">*</span> 不同管理组有不同的权限</td>
                </tr>
                <tr>
                    <td align="center">管理员状态：</td>
                    <td><input type="radio" name="admin_status" value="1" <?php if($user_admin->admin_status == '1'):?>checked<?php endif?> />开启 <input type="radio" name="admin_status" value="0" <?php if($user_admin->admin_status == '0'):?>checked<?php endif?> />禁止</td>
                    <td><span class="red">*</span> 如果禁止，帐号将不能登录</td>
                </tr>
        		<tr>
                    <td align="center" colspan="2">
                   		<input type="submit" class="submit" value="修改" /> 
                        &nbsp;&nbsp;
                        <input type="reset" class="reset" value="重置" />
                    </td>
                    <td>&nbsp;</td>
                </tr>
            </table>
   		</form>
    </div>
</div>
</body>
</html>